import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif
import uView from './uni_modules/vk-uview-ui';
Vue.use(uView);
import config from './libs/config.js'
import { navigate,menuAuth,btnAuth,isLogin } from './libs/function.js'
import uploadOss from './libs/ossUpload.js'
import NP from 'number-precision'
Vue.prototype.$config = config
Vue.prototype.$navigate = navigate
let noAvatar =
	"";
Vue.prototype.$noAvatar = noAvatar
Vue.prototype.$menuAuth = menuAuth
Vue.prototype.$btnAuth = btnAuth
Vue.prototype.$isLogin = isLogin
Vue.prototype.$uploadOss = uploadOss
Vue.prototype.$NP = NP
Vue.prototype.$onLaunched = new Promise(resolve => {
	if(!uni.getStorageSync('openid')){
		Vue.prototype.$isResolve = resolve
	}else{
		resolve()
	}
})
import mpShare from './libs/mpShare.js';
Vue.mixin(mpShare)
// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
